<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>条形图</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>

</head>
<body>
    <div id="770a82cd79814e23b8f814e774f179a8" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_770a82cd79814e23b8f814e774f179a8 = echarts.init(
            document.getElementById('770a82cd79814e23b8f814e774f179a8'), 'white', {renderer: 'canvas'});
        var option_770a82cd79814e23b8f814e774f179a8 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "bar",
            "name": "\u5206\u6570",
            "data": [
                [
                    "8.1",
                    2
                ],
                [
                    "7.0",
                    2
                ],
                [
                    "8.9",
                    2
                ],
                [
                    "8.6",
                    2
                ],
                [
                    "9.0",
                    2
                ],
                [
                    "7.2",
                    3
                ],
                [
                    "8.4",
                    3
                ],
                [
                    "7.6",
                    3
                ],
                [
                    "6.9",
                    3
                ],
                [
                    "7.8",
                    3
                ],
                [
                    "8.5",
                    4
                ],
                [
                    "8.2",
                    4
                ],
                [
                    "7.1",
                    5
                ],
                [
                    "7.4",
                    6
                ],
                [
                    "7.9",
                    6
                ],
                [
                    "8.8",
                    6
                ],
                [
                    "8.0",
                    7
                ],
                [
                    "7.3",
                    7
                ],
                [
                    "7.5",
                    8
                ],
                [
                    "7.7",
                    9
                ]
            ],
            "barCategoryGap": "20%",
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        },
        {
            "type": "bar",
            "name": "\u5206\u6570",
            "data": [
                "8.1",
                "7.0",
                "8.9",
                "8.6",
                "9.0",
                "7.2",
                "8.4",
                "7.6",
                "6.9",
                "7.8",
                "8.5",
                "8.2",
                "7.1",
                "7.4",
                "7.9",
                "8.8",
                "8.0",
                "7.3",
                "7.5",
                "7.7"
            ],
            "barCategoryGap": "20%",
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u5206\u6570",
                "\u5206\u6570"
            ],
            "selected": {
                "\u5206\u6570": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "xAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "data": [
                2,
                2,
                2,
                2,
                2,
                3,
                3,
                3,
                3,
                3,
                4,
                4,
                5,
                6,
                6,
                6,
                7,
                7,
                8,
                9
            ]
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "title": [
        {
            "text": "2019\u5e74\u6240\u770b\u7535\u5f71\u8bc4\u5206\u661f\u7ea7-\u6392\u884cTOP20",
            "subtext": "\u6570\u636e\u6765\u6e90\uff1a\u8c46\u74e3-loubobooo\u91c7\u96c6"
        }
    ],
    "dataZoom": [
        {
            "show": true,
            "type": "slider",
            "realtime": true,
            "start": 20,
            "end": 80,
            "orient": "vertical",
            "zoomLock": false
        }
    ]
};
        chart_770a82cd79814e23b8f814e774f179a8.setOption(option_770a82cd79814e23b8f814e774f179a8);
    </script>
</body>
</html>
